package com.westos.calcv3.proxy;

public class ProxySubject implements Subject {
    private Subject subject;
    public ProxySubject(Subject subject){
        this.subject=subject;
    }

    public void doSomething() {
        System.out.println("静态代理before");
        this.subject.doSomething();
        System.out.println("静态代理after");
    }
}